package sunflower.domain.mapper;

import org.apache.ibatis.annotations.Insert;
import sunflower.domain.Message;

import java.util.Date;
import java.util.List;

public interface MessageMapper {
    @Insert("INSERT INTO message (content, create_time) values(#{content}, #{createTime})")
    Boolean insert(Message message);

    List<Message> findAll(Date createTime);
}
